
find_device:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400648 <_init>:
  400648:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40064c:	910003fd 	mov	x29, sp
  400650:	9400004a 	bl	400778 <call_weak_fn>
  400654:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400658:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400660 <.plt>:
  400660:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400664:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf580>
  400668:	f947fe11 	ldr	x17, [x16, #4088]
  40066c:	913fe210 	add	x16, x16, #0xff8
  400670:	d61f0220 	br	x17
  400674:	d503201f 	nop
  400678:	d503201f 	nop
  40067c:	d503201f 	nop

0000000000400680 <perror@plt>:
  400680:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400684:	f9400211 	ldr	x17, [x16]
  400688:	91000210 	add	x16, x16, #0x0
  40068c:	d61f0220 	br	x17

0000000000400690 <open@plt>:
  400690:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400694:	f9400611 	ldr	x17, [x16, #8]
  400698:	91002210 	add	x16, x16, #0x8
  40069c:	d61f0220 	br	x17

00000000004006a0 <__libc_start_main@plt>:
  4006a0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006a4:	f9400a11 	ldr	x17, [x16, #16]
  4006a8:	91004210 	add	x16, x16, #0x10
  4006ac:	d61f0220 	br	x17

00000000004006b0 <sleep@plt>:
  4006b0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006b4:	f9400e11 	ldr	x17, [x16, #24]
  4006b8:	91006210 	add	x16, x16, #0x18
  4006bc:	d61f0220 	br	x17

00000000004006c0 <close@plt>:
  4006c0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006c4:	f9401211 	ldr	x17, [x16, #32]
  4006c8:	91008210 	add	x16, x16, #0x20
  4006cc:	d61f0220 	br	x17

00000000004006d0 <__gmon_start__@plt>:
  4006d0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006d4:	f9401611 	ldr	x17, [x16, #40]
  4006d8:	9100a210 	add	x16, x16, #0x28
  4006dc:	d61f0220 	br	x17

00000000004006e0 <abort@plt>:
  4006e0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006e4:	f9401a11 	ldr	x17, [x16, #48]
  4006e8:	9100c210 	add	x16, x16, #0x30
  4006ec:	d61f0220 	br	x17

00000000004006f0 <puts@plt>:
  4006f0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006f4:	f9401e11 	ldr	x17, [x16, #56]
  4006f8:	9100e210 	add	x16, x16, #0x38
  4006fc:	d61f0220 	br	x17

0000000000400700 <read@plt>:
  400700:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400704:	f9402211 	ldr	x17, [x16, #64]
  400708:	91010210 	add	x16, x16, #0x40
  40070c:	d61f0220 	br	x17

0000000000400710 <strstr@plt>:
  400710:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400714:	f9402611 	ldr	x17, [x16, #72]
  400718:	91012210 	add	x16, x16, #0x48
  40071c:	d61f0220 	br	x17

0000000000400720 <printf@plt>:
  400720:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400724:	f9402a11 	ldr	x17, [x16, #80]
  400728:	91014210 	add	x16, x16, #0x50
  40072c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400730 <_start>:
  400730:	d280001d 	mov	x29, #0x0                   	// #0
  400734:	d280001e 	mov	x30, #0x0                   	// #0
  400738:	aa0003e5 	mov	x5, x0
  40073c:	f94003e1 	ldr	x1, [sp]
  400740:	910023e2 	add	x2, sp, #0x8
  400744:	910003e6 	mov	x6, sp
  400748:	580000c0 	ldr	x0, 400760 <_start+0x30>
  40074c:	580000e3 	ldr	x3, 400768 <_start+0x38>
  400750:	58000104 	ldr	x4, 400770 <_start+0x40>
  400754:	97ffffd3 	bl	4006a0 <__libc_start_main@plt>
  400758:	97ffffe2 	bl	4006e0 <abort@plt>
  40075c:	00000000 	.inst	0x00000000 ; undefined
  400760:	0040096c 	.word	0x0040096c
  400764:	00000000 	.word	0x00000000
  400768:	00400988 	.word	0x00400988
  40076c:	00000000 	.word	0x00000000
  400770:	00400a08 	.word	0x00400a08
  400774:	00000000 	.word	0x00000000

0000000000400778 <call_weak_fn>:
  400778:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf580>
  40077c:	f947f000 	ldr	x0, [x0, #4064]
  400780:	b4000040 	cbz	x0, 400788 <call_weak_fn+0x10>
  400784:	17ffffd3 	b	4006d0 <__gmon_start__@plt>
  400788:	d65f03c0 	ret
  40078c:	00000000 	.inst	0x00000000 ; undefined

0000000000400790 <deregister_tm_clones>:
  400790:	b0000080 	adrp	x0, 411000 <perror@GLIBC_2.17>
  400794:	9101a000 	add	x0, x0, #0x68
  400798:	b0000081 	adrp	x1, 411000 <perror@GLIBC_2.17>
  40079c:	9101a021 	add	x1, x1, #0x68
  4007a0:	eb00003f 	cmp	x1, x0
  4007a4:	540000a0 	b.eq	4007b8 <deregister_tm_clones+0x28>  // b.none
  4007a8:	90000001 	adrp	x1, 400000 <_init-0x648>
  4007ac:	f9451421 	ldr	x1, [x1, #2600]
  4007b0:	b4000041 	cbz	x1, 4007b8 <deregister_tm_clones+0x28>
  4007b4:	d61f0020 	br	x1
  4007b8:	d65f03c0 	ret
  4007bc:	d503201f 	nop

00000000004007c0 <register_tm_clones>:
  4007c0:	b0000080 	adrp	x0, 411000 <perror@GLIBC_2.17>
  4007c4:	9101a000 	add	x0, x0, #0x68
  4007c8:	b0000081 	adrp	x1, 411000 <perror@GLIBC_2.17>
  4007cc:	9101a021 	add	x1, x1, #0x68
  4007d0:	cb000021 	sub	x1, x1, x0
  4007d4:	9343fc21 	asr	x1, x1, #3
  4007d8:	8b41fc21 	add	x1, x1, x1, lsr #63
  4007dc:	9341fc21 	asr	x1, x1, #1
  4007e0:	b40000a1 	cbz	x1, 4007f4 <register_tm_clones+0x34>
  4007e4:	90000002 	adrp	x2, 400000 <_init-0x648>
  4007e8:	f9451842 	ldr	x2, [x2, #2608]
  4007ec:	b4000042 	cbz	x2, 4007f4 <register_tm_clones+0x34>
  4007f0:	d61f0040 	br	x2
  4007f4:	d65f03c0 	ret

00000000004007f8 <__do_global_dtors_aux>:
  4007f8:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007fc:	910003fd 	mov	x29, sp
  400800:	f9000bf3 	str	x19, [sp, #16]
  400804:	b0000093 	adrp	x19, 411000 <perror@GLIBC_2.17>
  400808:	3941a260 	ldrb	w0, [x19, #104]
  40080c:	35000080 	cbnz	w0, 40081c <__do_global_dtors_aux+0x24>
  400810:	97ffffe0 	bl	400790 <deregister_tm_clones>
  400814:	52800020 	mov	w0, #0x1                   	// #1
  400818:	3901a260 	strb	w0, [x19, #104]
  40081c:	f9400bf3 	ldr	x19, [sp, #16]
  400820:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400824:	d65f03c0 	ret

0000000000400828 <frame_dummy>:
  400828:	17ffffe6 	b	4007c0 <register_tm_clones>

000000000040082c <find_device>:
  40082c:	d110c3ff 	sub	sp, sp, #0x430
  400830:	a9007bfd 	stp	x29, x30, [sp]
  400834:	910003fd 	mov	x29, sp
  400838:	b9042fbf 	str	wzr, [x29, #1068]
  40083c:	f90213bf 	str	xzr, [x29, #1056]
  400840:	90000000 	adrp	x0, 400000 <_init-0x648>
  400844:	9128e000 	add	x0, x0, #0xa38
  400848:	52800001 	mov	w1, #0x0                   	// #0
  40084c:	97ffff91 	bl	400690 <open@plt>
  400850:	b9041fa0 	str	w0, [x29, #1052]
  400854:	b9441fa0 	ldr	w0, [x29, #1052]
  400858:	7100001f 	cmp	w0, #0x0
  40085c:	540007ad 	b.le	400950 <find_device+0x124>
  400860:	910063a0 	add	x0, x29, #0x18
  400864:	d2808002 	mov	x2, #0x400                 	// #1024
  400868:	aa0003e1 	mov	x1, x0
  40086c:	b9441fa0 	ldr	w0, [x29, #1052]
  400870:	97ffffa4 	bl	400700 <read@plt>
  400874:	b9041ba0 	str	w0, [x29, #1048]
  400878:	b9441fa0 	ldr	w0, [x29, #1052]
  40087c:	97ffff91 	bl	4006c0 <close@plt>
  400880:	90000000 	adrp	x0, 400000 <_init-0x648>
  400884:	91292000 	add	x0, x0, #0xa48
  400888:	97ffff9a 	bl	4006f0 <puts@plt>
  40088c:	b9441ba0 	ldr	w0, [x29, #1048]
  400890:	7100001f 	cmp	w0, #0x0
  400894:	5400064d 	b.le	40095c <find_device+0x130>
  400898:	910063a0 	add	x0, x29, #0x18
  40089c:	f90213a0 	str	x0, [x29, #1056]
  4008a0:	14000024 	b	400930 <find_device+0x104>
  4008a4:	90000000 	adrp	x0, 400000 <_init-0x648>
  4008a8:	91296000 	add	x0, x0, #0xa58
  4008ac:	aa0003e1 	mov	x1, x0
  4008b0:	f94213a0 	ldr	x0, [x29, #1056]
  4008b4:	97ffff97 	bl	400710 <strstr@plt>
  4008b8:	f90213a0 	str	x0, [x29, #1056]
  4008bc:	f94213a0 	ldr	x0, [x29, #1056]
  4008c0:	f100001f 	cmp	x0, #0x0
  4008c4:	54000360 	b.eq	400930 <find_device+0x104>  // b.none
  4008c8:	f94213a0 	ldr	x0, [x29, #1056]
  4008cc:	91002800 	add	x0, x0, #0xa
  4008d0:	f90213a0 	str	x0, [x29, #1056]
  4008d4:	90000000 	adrp	x0, 400000 <_init-0x648>
  4008d8:	9129a000 	add	x0, x0, #0xa68
  4008dc:	aa0003e1 	mov	x1, x0
  4008e0:	f94213a0 	ldr	x0, [x29, #1056]
  4008e4:	97ffff8b 	bl	400710 <strstr@plt>
  4008e8:	f90213a0 	str	x0, [x29, #1056]
  4008ec:	f94213a0 	ldr	x0, [x29, #1056]
  4008f0:	f100001f 	cmp	x0, #0x0
  4008f4:	540001e0 	b.eq	400930 <find_device+0x104>  // b.none
  4008f8:	f94213a0 	ldr	x0, [x29, #1056]
  4008fc:	91001000 	add	x0, x0, #0x4
  400900:	f90213a0 	str	x0, [x29, #1056]
  400904:	14000004 	b	400914 <find_device+0xe8>
  400908:	f94213a0 	ldr	x0, [x29, #1056]
  40090c:	91000400 	add	x0, x0, #0x1
  400910:	f90213a0 	str	x0, [x29, #1056]
  400914:	f94213a0 	ldr	x0, [x29, #1056]
  400918:	39400000 	ldrb	w0, [x0]
  40091c:	7100801f 	cmp	w0, #0x20
  400920:	54ffff40 	b.eq	400908 <find_device+0xdc>  // b.none
  400924:	b9442fa0 	ldr	w0, [x29, #1068]
  400928:	11000400 	add	w0, w0, #0x1
  40092c:	b9042fa0 	str	w0, [x29, #1068]
  400930:	f94213a0 	ldr	x0, [x29, #1056]
  400934:	f100001f 	cmp	x0, #0x0
  400938:	54fffb61 	b.ne	4008a4 <find_device+0x78>  // b.any
  40093c:	90000000 	adrp	x0, 400000 <_init-0x648>
  400940:	9129c000 	add	x0, x0, #0xa70
  400944:	b9442fa1 	ldr	w1, [x29, #1068]
  400948:	97ffff76 	bl	400720 <printf@plt>
  40094c:	14000004 	b	40095c <find_device+0x130>
  400950:	90000000 	adrp	x0, 400000 <_init-0x648>
  400954:	9128e000 	add	x0, x0, #0xa38
  400958:	97ffff4a 	bl	400680 <perror@plt>
  40095c:	b9442fa0 	ldr	w0, [x29, #1068]
  400960:	a9407bfd 	ldp	x29, x30, [sp]
  400964:	9110c3ff 	add	sp, sp, #0x430
  400968:	d65f03c0 	ret

000000000040096c <main>:
  40096c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400970:	910003fd 	mov	x29, sp
  400974:	97ffffae 	bl	40082c <find_device>
  400978:	52800020 	mov	w0, #0x1                   	// #1
  40097c:	97ffff4d 	bl	4006b0 <sleep@plt>
  400980:	17fffffd 	b	400974 <main+0x8>
  400984:	00000000 	.inst	0x00000000 ; undefined

0000000000400988 <__libc_csu_init>:
  400988:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  40098c:	910003fd 	mov	x29, sp
  400990:	a901d7f4 	stp	x20, x21, [sp, #24]
  400994:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf580>
  400998:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf580>
  40099c:	91374294 	add	x20, x20, #0xdd0
  4009a0:	913722b5 	add	x21, x21, #0xdc8
  4009a4:	a902dff6 	stp	x22, x23, [sp, #40]
  4009a8:	cb150294 	sub	x20, x20, x21
  4009ac:	f9001ff8 	str	x24, [sp, #56]
  4009b0:	2a0003f6 	mov	w22, w0
  4009b4:	aa0103f7 	mov	x23, x1
  4009b8:	9343fe94 	asr	x20, x20, #3
  4009bc:	aa0203f8 	mov	x24, x2
  4009c0:	97ffff22 	bl	400648 <_init>
  4009c4:	b4000194 	cbz	x20, 4009f4 <__libc_csu_init+0x6c>
  4009c8:	f9000bb3 	str	x19, [x29, #16]
  4009cc:	d2800013 	mov	x19, #0x0                   	// #0
  4009d0:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4009d4:	aa1803e2 	mov	x2, x24
  4009d8:	aa1703e1 	mov	x1, x23
  4009dc:	2a1603e0 	mov	w0, w22
  4009e0:	91000673 	add	x19, x19, #0x1
  4009e4:	d63f0060 	blr	x3
  4009e8:	eb13029f 	cmp	x20, x19
  4009ec:	54ffff21 	b.ne	4009d0 <__libc_csu_init+0x48>  // b.any
  4009f0:	f9400bb3 	ldr	x19, [x29, #16]
  4009f4:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4009f8:	a942dff6 	ldp	x22, x23, [sp, #40]
  4009fc:	f9401ff8 	ldr	x24, [sp, #56]
  400a00:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400a04:	d65f03c0 	ret

0000000000400a08 <__libc_csu_fini>:
  400a08:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400a0c <_fini>:
  400a0c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400a10:	910003fd 	mov	x29, sp
  400a14:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400a18:	d65f03c0 	ret
